var express = require('express');
var router = express.Router();
var userCtrl = require('../controller/user.controller');

router.post('/data', userCtrl.create); //新增用户
router.get('/data/:id', userCtrl.get); //修改用户
router.put('/data/:id', userCtrl.update); //修改用户
router.delete('/data/:id', userCtrl.remove); //删除用户
router.post('/data/removes', userCtrl.removes); //删除多个用户
router.post('/list', userCtrl.list); //查找用户

module.exports = router;